@extends('home.layout.layout')

@section('content')
<style>
#slidr-img img{width:680px;height:300px}
#footer{position: relative;margin: 0 auto;background: #304040;padding: 20px;}
</style>

<article>
@include('home.layout.aside')
    <main class="r_box">
        @foreach($articles as $article)
        <li>
            <i><a href="{{ url('article/detail/'.$article->id) }}"><img src="{{ asset('home/images/p.png') }}"></a></i>
            <h3><a href="{{ url('article/detail/'.$article->id) }}">{{ $article->title }}</a></h3>
            <p>{{ $article->desc }}</p>
        </li>
        @endforeach
        <!-- 分页 -->
        <div style="margin-left:45%">{{ $articles->links() }}</div>
        
    </main>
</article>

@endsection
